README for Egel and Obermeier (2022), "A Friend Like Me: The Effect of IO Membership on State Preferences" 


LIST OF FILES

A_friend_like_me_codebook.txt : contains explanations of the variables in each data set

A_friend_like_me_eastern.csv : data set for analysis of effect of Eastern accession on preference similarity

A_friend_like_me_eastern_EU15.csv : data set for analysis of Eastern accession states in comparison to EU-15 member states

A_friend_like_me_northern.csv : data set for analysis of Northern accession on preference similarity

A_friend_like_me_code.R : R script used for all analyses


INSTRUCTIONS

All analyses were conducted in R version 4.1.2. The script A_friend_like_me_code.R lists the packages required for conducting the analyses.

To replicate Table 1 in the manuscript, load A_friend_like_me_eastern.csv and run lines 31-57 in the R script.

To replicate Table C1 in Appendix C, load A_friend_like_me_eastern.csv and run lines 64-74 in the R script.

To replicate Table C2 in Appendix C, load A_friend_like_me_eastern_EU15.csv and run lines 81-91 in the R script.

To replicate Table C3 in Appendix C, load A_friend_like_me_northern.csv and run lines 99-109 in the R script.

To replicate Table D1 in Appendix D, load A_friend_like_me_eastern.csv and run lines 112-117 in the R script.

To replicate Table D2 in Appendix D, load A_friend_like_me_eastern.csv and run lines 122-128 in the R script.

To replicate Figure E1 in Appendix E, load A_friend_like_me_eastern.csv and run lines 134-243 in the R script.

To replicate Table E1 in Appendix E, load A_friend_like_me_eastern.csv and run lines 248-251 in the R script.

To replicate Table F1 in Appendix F, load A_friend_like_me_eastern_EU15.csv and run lines 260-267 in the R script.

To replicate Table G1 in Appendix G, load A_friend_like_me_northern.csv and run lines 277-282 in the R script.